{  ACMP.RU
   Statement: http://acmp.ru/?main=task&id_task=10
   Verdict: Accepted
}
uses 
    SysUtils, Math;
    
var 
    i,a,b,c,d:longint;

begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(a,b,c,d);
for i:=-100 to 100 do 
    if a*i*i*i+b*i*i+c*i+d=0 then write(i,' ');
end.
